<?php
class Application_Form_Inscription extends Zend_Form{  
	
	public function init(){
		// Set the method for the display form to POST
        $this->setMethod('post');

        // Add an email element
        $this->addElement('text', 'email', array(
            'label'      => 'Your email address:',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'validators' => array(
                'EmailAddress',
            )
        ));

        // Add the comment element
        $this->addElement('Password', 'password', array(
            'label'      => 'Mot de passe:',
            'required'   => true,
            'validators' => array(
                array('validator' => 'StringLength', 'options' => array(0, 20))
                )
        ));
        
          // Add the comment element
        $this->addElement('Select', 'sex', array(
            'label'      => 'Je suis :',
            'required'   => true,
            'MultiOptions' => array(
                array('H' => ' un homme', 'F' => ' une femme')
                )
        ));


        // Add the submit button
        $this->addElement('submit', 'submit', array(
            'ignore'   => true,
            'label'    => 's\'inscrire',
        ));
	}
}